started handler and main script