fixed logging, still not usable