better logging/exception handling; post to 2 endpoints