update models, add constants