setting up code to flush uart
blah
working mainly