use standard function to parse bool.