changed gateway not to print and webservice to handle token based
storage.