implement import with context

Closes #90