added optstring global