changed configure from function to object
persistence now keeps connections alive