updated Model API to allow mId modification