update some header files and add some help functions