fix caller path detect function, bind to app