clean up URL mess