change to using directories