WIP: generalizing BG removal