Resource generation (collection still buggy)

description says it all