better logging for initializing script
cleaningup