add support for storing and returning bools