conditional check for os