add socket plugin definition