RM and code upload