update main file, sync to the current behaviour