added ability to download model via rest