added support for custom formatters
added header separator