moving logging to bottom to reduce clutter