url resolver nearly finished