allowing model name and id to be explicitly set