def make_field(val) ->str:
    """ adds the NULL string terminator """
    if val is None:
        raise ValueError('Cannot send None to TWS')
    if type(val) is bool:
        val = int(val)
    field = str(val) + '\x00'
    return field
