write init_commands