lib update
fixed leaks