restrict socket type for helper functions
notify_on_begin option implemented