add ClassRegistry dependency