refactor IssuePatch and init.rb and use new settings