added the ability to upload and update a model