add sandbox support and update username to hxid