Roughly completed all api for swf