directory constructor made