returncode and run main after build