Before revision:  First, we enhance current BSDE-based xVA frameworks to include initial margin by following the approach o Cr\'epey (2015a) and Cr\'epey (2015b) .
After revision:  First, we enhance current BSDE-based xVA frameworks to include initial margin in presence of defaults .