removed logging via fmt and replaced with leveled logger