rmdf: split into editor and runtime