connecting serail port to conout off, included a boot debug code