extracted a common directory to a constant