add support for ptr to extends struct