move pickle init check