first commit.

crude code no clean up just a working prototype