add write detail and fix re0, re100 bug