fixed parsing bug when flags weren't specified