diff --git a/hmm/hmm_module.c b/hmm/hmm_module.c
index 96a63f37fef41fc7eeb9c08c40ff543703b99d6d..63811d31d13f3c6695ebea04ae40235838e0b3a3 100644
--- a/hmm/hmm_module.c
+++ b/hmm/hmm_module.c
@@ -115,7 +115,7 @@ hmm_poisson_viterbi (PyObject *self, PyObject *args)
 
 
 static PyMethodDef
-HMM_Methods[] = {
+CA_Methods[] = {
     {"hmm_poisson_fit_em", hmm_poisson_fit_em, METH_VARARGS,
      "hmm_poisson_fit_em (x, m, _lambda, _gamma, _delta, max_iter, tol)"},
 
@@ -132,18 +132,18 @@ HMM_Methods[] = {
 };
 
 static struct PyModuleDef
-hmm_module = {
+chains_addiction_module = {
     PyModuleDef_HEAD_INIT,
-    "hmm",
+    "chains_addiction",
     NULL,
     -1,
-    HMM_Methods
+    CA_Methods
 };
 
 PyMODINIT_FUNC
-PyInit_hmm(void)
+PyInit_chains_addiction (void)
 {
-    import_array();
-    return PyModule_Create (&hmm_module);
+    import_array ();
+    return PyModule_Create (&chains_addiction_module);
 }
 
diff --git a/makefile b/makefile
index b4757039cc949a02b83db52fcfe5110053913c51..ec6cdb4436dcaecd56dc87ad9f2c5093e4e83c93 100644
--- a/makefile
+++ b/makefile
@@ -3,12 +3,12 @@ TEST_INCLUDE = -Iinclude/ -Itests/src/
 CFLAGS  = -Wall -Wsign-compare
 MACROS = -DDebug -Dwarn_nan 
 
-hmm.cpython-37m-darwin.so: hmm/*.c include/*.h
-	python3 setup.py build_ext --inplace
+chains_addiction.cpython-37m-darwin.so: hmm/*.c include/*.h
+	pip3 install .
 
 clean:
 	rm -rf build/
-	rm hmm.cpython-37m-darwin.so
+	rm chains_addiction.cpython-37m-darwin.so
 
 test:
 	python3 test_hmm.py
diff --git a/setup.py b/setup.py
index 83f3cc2d0e5a56848ed669cbdd9daeeecee5e400..0aee01326ff07715b07f49a4735d3a32120bdb92 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
         include_dirs    = get_numpy_include_dirs(),
         ext_modules     =   [
                                 Extension(
-                                    'hmm',
+                                    'chains_addiction',
                                     sources     = [ 'hmm/stats.c',
                                                     'hmm/fwbw.c',
                                                     'hmm/em.c',