file operations
added method plain_record