entity fields now identifyed as strings (field ids), not indices; implemented adding fields from script