handle pilot return code
style