init path->open and path->closed correctly