set proper mode and add update script