scripts and LUA improved