Loadmodel plain func support

@manthey PTAL, closely related to what you just did.