bugfix: use updated api syntax