add connection and handler