flatten package a bit, do colour formatting