moved some shared utils from container to utils; fixed logging