add remove dir index method
cleanup bin