added minimal logging framework