add basic callbacks for extensions to use.