allow multiple directories as input