added config.loadStyles option