added getCurrentOption function