getting directory access