added data() accessor to Resource