added colorful logging for readability