fix reservoir size
use gsed to avoid platform annoyingness
no gsed... sigh...
compress results when finished