moved import out of function...