support for deletions with joins

Fixes issue #50