added reset
updated and working for centos, can control data directory