cant open $filename problem is with permission