refactor(scope) Move IO to local method scope for IDE auto complete