peek added for socket