separating files caused double-dependency; resolving with in-function imports