fixed bugs

flags can have -, _, [space]

