changed console as alert in bgmode to log ...bgs check