simplified semantics - changed registerPath to path