explicilty return sock otherwise 0 is returned on success