Since segment.io always goes to http
Little refactoring and alert support