calculate parent and fullpath sooner