re-arrange the commands and make sure kudu sync happens