cleaned up bg manager