first variation of hook program complete

Will need calib later