add logger
add max connection option