better script logging