modifications for dualitystatus and agent handling. problems with dualitytype getter occured