async plugin: adding second parameter to support naming a global callback function instead of the generated one.