moved path methods to common