improve api for setup models