add some framework

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