new inlined callbacks framework