remove unnecessary file and directory
add input option