remove unnecessary import
optionally allow to specify http scheme