added proper dispose handling for fetch operation