added new option 'formatter' to provide custom formatting