still debugging mem_free