clever fix in lua of  border toggling ;)