add category class to file formatter