script for running coupled analysis