adding logic around spec update