make getpci() working