some logic fixes
Merge branch 'master' of https://github.com/niralittle/Notus