reduce the number of console log in BG