refactor init options