scriptengine, datamodel improvements and XML codec