added bg support