fixing api urls