now using the get_mark function
exception handling in sender.py