print message instead of writing it to socket stream