fixed coverage threading issues; added selectable simulation time