extra logging and made cvss a parameter