basic bg extraction