migrate KevScript engine to new syntax