revert back to neater format_resource line