fixing api requires