adding option handlers