first working version.... kind of working at least. not sure there this is going.