moved credit flow to the correct script file