some minimal commenting / cleanup to websockets