cmdfd is no more global.