added code to handle wrong output from crm_resource for older releases