fixing the lib to be compatible with mininet