adding support for specifying ofport, when agent restarts