removed duplicate trust rules
cleaned up formatting on functions.sh