added modes to ws