fixing Makefile and snap.i