added usage and socket error