sign inout bg
finished lig in-out (no tests)