tweaking option parse loop