better asyncify interface

numRecords meta function