provide a callback that allows us to inject an account code

@PatchworkGuilt (cc @byels)