api add setCurrentPath