generalized contact loading logic