creating client and common dirs