move connection test to better spot