added logging of scripts