porting to new factorie