refactor class naming in resource writers