added directory permissions