updated api, changed some stuff