move input/output directory specifications out of constructor