more error tracking
fix api paths