a bit better handling of model id conversion