improved branch handlung during update process