add support for unsubscribing. Closes #2