drop options, write to socket, fix puppet code