this method expects flowId, netId as parameters. Be careful with the order!