volscript mostly rewritten