"msg" not in scope