split sync and rebuild output into two variables