setup main class and proxy