working up xde-setbg replacement