changes in API generator. fabric renamed to factory