add missing Utils class and clean up unused imports and variables