persist connections - needs tests
closes #209