Port to 2.2 API version

Signed-off-by: Jens Georg <mail@jensge.org>