pk naming change-related bugfixes
use a 'path' var instead of 'parent'