worked out initial problems with EJSON collection types