removed some logging and fixed a typeo
added a method for prefixing data on the fly
wired everything together and it works!