rework url parsing in define WE