integrated state pattern with transfer manager