this will be replaced by the SWF.