Fix on install script
Add security index
Add debug log system