clean up and organization
created: test connection function