small fixes in mc_action_man
refactor write, change callbacks to HO functions