decode raw-scripts