rework reflection script