archive: implement archive grid helper functions;