initial working version of pipeline scripts