add needspace script