make connection a class attribute
make connection a class attribute