preparing application directories