cleanup for console output