add max reconnect attempts & update dependencies & update logger configure