add colored error handling