its input, not dir