better startup function handling: all for a startup function to delay its execution until everything is ready to go