implement shell formatter