fixing option parser