fixed a few api issues