fix sensors and other things