added stringtobool to parse env variables