added pre-generation hook facet