had to fix the library interface so the conversion function is not repeated both here and in hybridsim