fixing api access