add some logging, dumb implementation