add singleton pattern dir