fixing api responses