add upload rules script