refactor init, break out parsing, catch file not found error in helpers.js