added URL handling to checktask