improved bg loading