made signout more stable