init code commit

mostly broken but here is some code