making apis consistent