move most imports out of scopes, so they only get imported once