api updates and speed fixes