report: script improvements and new options