added coloring and plotting utilities