some fixes, added beginning of update script