streamlining of the api