added non-SSL access setting and fixed event args