added more serial output for debugging