update security script to pull in arguments