moved initialize in index.js