basic measurement flow template logic