now it handles parent path variables