got some flag and log magic working