Fix some compiler warnings, add more clean logs in merge notification handler
Add refresh helper