added primary_input api calls to the api call macros