add credit_flow.erl