setup api files