better logging in datasend.py