move dorec to plugins, not internals