better support for dbref