add migration hook