ADDED addConditions method
CHANGED handling url