introduced sane schema type system
replaced ridiculously slow method