fixed user state stuff, added dev::create_user