advanced os logic and implementation 441646