import within function to eliminate cyclic import