some mainainance on the lua scripts