set dynamic import protocol and host