first crude implementation of handling missing file permissions to perform the operations