added 'edit-as-root' mode