add runtime reload hook