handling multiple apis