fixed some unsupportedoperationexceptions in error handling