this will be called on every Restart directive, is that the intention?