add TODO
add config of target directory
slight modification