minor tweaks to delete_rejected script