modified:   sophia.lua