remove unused code
force scheme for resource url