fixed a lot of bugs in cov