improve error message
add save cert to disk
add color for logger