add modification for compile with socket module on local only
add output file