add Account features on framework level
some other modifications

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