added extendable conditions to modules, and added a referer condition to the core