code update for new aREST library