remove redundants from Makefile; add param to .conf stub.
fix some leaks