add pre-flight check