instances use registry instead of being on the stack