updated the initialize/finalize for turtle.lua