handle url and debuging