import function. fixes #351