partial working editor in progress, require debugging