get fg and bg working in ugly way