added support for tryget and get by datatype