adding logging levels. code may be broke atm, but since it's just me ...