add resource to output