scriptengine: don't use deprecated API

fixes #450