def indexof(ilist, item):
    """ returns the index of item in the list """
    i = 0
    for list_item in ilist:
        list_item = list_item.strip()
        if list_item == item:
            return i
        i += 1
    print("ERROR failed to parse config, can't find item:", item)
    exit(-4)