flow.lua - st targ refactoring