updated template files, slight bug fix for secure_ip