allow passing tasks as urls or objects