simplified resource logic
Merge branch 'master' of https://github.com/biometrics/openbr