init code upload