ENHANCEMENT added command arguments and enabled failed rewrite logging for the report