add resource document