update error_ctrl and add example