1. change path specified method
2. repair some bugs.