initial code commit

[WARNING] many things broken