also defined tobool

there were a few instance of it being used but it can not found the
definition of it anywhere...