ssh sometimes mumges output, workaround is to find prefixes