added port to affManager to stream out data, and a saveguard before the action is done