fixing file operations
operator edit and tests