moved system.h around in main header file