move socket connection parameters to config