hacks to make custom user class work