small improvements
improved cook script