support modules importing inside function bodies