setup api files for init