change the manage code base on the dir structure