improved empty scripts and logging