metadata: added constructor and path-stack