patch for reflection and add reflection script file

patch for reflection and add reflection script file