add some inline
add common reg debug and minimize operations in critical path.