cache table printing made better