updated api a little more