module file selection

add module function

refactor