working on measurement control

almost finished