play_script , enc type, fix bugs