crappy code.
crappy code that works.