rename resultfile to match object name
adjust to modified output format