initial code dump

not fully functional yet