rearranged reset, typecasting logger output