ensure states in server