wrote new main file on bootstrap