removed modification of parsed payload object
fixed autogenerate loop in ResourceHandler