sockschain wrapper with stdin