tweaking twl script