some modifications on framework level.

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