implement import with context

Closes #90
add test to ensure without context works