add stat module
add creation directory option