fix again, free outside of lib