If there is a flow called  main it is called on startup with the arguments