api update, jasmine tests