pass dir as input