bug fix; basetext tools