fix option based on the new API