readme docs for factory.extend