removed socket in main