fixes for dir rights