tidied up resource representation