working init subcommand