increased logging and removed spurious print