remove urls from settings and fix import error for >= 1.6