non SSL & Certificate based working version