Revert "Revert "baginet""

This reverts commit d6df81baab09bd6b8270885d635d0e861e1dba1f.