add raw resource support