use the correct server-side function
Merge pull request #1 from aaaristo/master

use the correct server-side function