changed logging to debug like a good lib should