fixed some other minor errors as well. Automated actions now seem to be working.