support temporary register function
Support color diff