version dev.3 of render script working