support contexts, fixes #2