fix add resource logging