conn should not be global