some polishing done. clock now can handle dead sensors