config document
support sub-dir for input