made API work