getting updates from opengm -master