alloc doesn't take a refdb

I think this is the solution that @vmg was proposing?