cleaned up code in the url files