modifies socket behavior