fix handleOptions