allow custom IV. Fixes #1