clear connections on before