bit of work on porting meim over to new model