avoid UnsupportedOperation exceptions