Bugfix for issue #40

- added model as parameter to resource checking