main in run, and platform