nooblib: declare more vars as local