improved bg profile scripts