on_begin callback added