factor out editors