refactor & add deploy model