fixing bugs with options