trying to get around php permission issues