add some code for Account features on framework level
some other modifications on framework level

Signed-off-by: TomWu <phperwuhan@gmail.com>