fix indentation; add an option to spawn script once