generalized dir names to source