fix poolworker post-merge. add unit test.
use config option for fx update period.