building up pathresolver