pull classes out of main