take care for stringified booleans, add spec tests