framework base code