removed the version dependencies so it works with repository installed packages, changed the if condition to: if cov is not None, which seems to work