add method to mark granted
fix typos, ensure ordered delivery of records