update color ptr
improve addr table init commit
optimize for C++11