rename function to match API

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>