formatter module design and helpers for formating