script for multiple pieces into one file