changes to allow very basic schema handling and arrays