remove unuse code
support 5 dir