rm socket and mongoose