fix bug in ({foo} {bar}) parsing
added loggind