remove js-yaml and refactor file loading