add rudimental support for batch formatting to improve speed