rebase all template source