add id to swf.Fixes #663