in-mem callback prototype