souce root method invoked to get path