fixed logging! yeay!