fixed cook script