improved automatization of 2bin unfolding