got rid of useless connection code