refactor(server) cleanup snapshot