editor factory and stuff