fix memory leaks, fix blob data management