#330 allow script reloading during execution and tidy up logging