code fixes (safe environment for iOS - airplay closeFS)