adapted to new view_config scheme in dm 4.1