added basic device file operations functions