scripts for parsing kvarq output