added $api, updated model and collection