adding IPA and properly initializing mongo