move things to config that belong there, sql mode hooks