clean up sync script, leverage new config options