code simplify
clear local manifest when needed.