make parseMap more flexible to accept scala.io.Source.fromURL