added ObjectType to schema types
better error reporting in safeEmit