main.rb and admin_connect