check setoptions