add color msg and do not print, only return
add color msg in exit and print the md_name
add try check