wasn't properly parsing arguments