added a function to chmod a directory just to get into it. It isnt a safe thing to use really so I call it magic.