add settingslogic and haml