adding mem_free params to various components