adding mem_free config param