support mweb.write_after_cb(cnn, cb, cb_data)