define global sonite function and remove export instead