sockschain wrapper which gets all arguments from stdin