fixes for saimod log and security,header fixes, autoload_all