preloading classes. closes #297