minor cleanup for file outputs