couple of small tweaks to the simplebot code and some attribution to @makenai