add support for declaration version