default settings for flight mode and code cleanup