console output is inverted for more user friendly html interface