onBeforeStart callback added to enable pre-flight processing