fix folder permissions
add some feedback on error