added logging to ca_scripts