from opengm master to my fork second try