removed unused method
corrected pathname resolution