add attachResource() method
add udpates for resource attachment