unfinished redesign of resource processing
updated examples