encoding problems and vm crashing