using URL reverse lookup, fixing import bug