add https filter and fix bug