finish framework

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>