added a main to test the slog