better handling of unknown type