changes for getting the right path of static references