added base classes and test connection