attempted logging fix