check for contopt