progress on mean code generator