splitting out composer sync function into its own script