updated security script