simplifying socket message