added pre-forking
settingsfile
little clean_up