added extra param on class hook in order to prevent multiple queries
Merge pull request #186 from iamntz/class-hook

added extra param on class hook in order to prevent multiple queries