flags and notes client side working