changed mkfile for sudo