fixed for use securely, autopublish and insecure off