removed if not url.endswith('/') from init