sourcing import only on function calls