adding main framework