new doc generation - first step