move directory config to one place