.setConfig(): added deprecation warning
expose main class into self prototype