#45 avoid barriers

Fixes #45