Path handling

testing with adobe cq reveiled some minor bugs