main leak seems to be addressed, still seeing small leak at end; may set up author test to see if this can be checked maybe via Travis-CI