got both my apis working