move config stuff to config.js