start script for logging