added edit_mode
require statesman