added wireframe mode for debugging purposes