make primary key of target table configurable. fixes #1