uncommented wrapper_factory