used chaining for tracking urls and states where possible