an experiment around a factory function prototype helper