utils cleanup and release