handle multiple options