add more file operations

@devoncarew