added creation logic for offline directories