attempting to add api_ref calls into api_count