add debug token and ip address filtering, remove debug print buffer