bugfix: flags are arrays