state manager now waits for state provider to be ready and support configuring this behaviour