#system: moved system function to globals