reworked init for sensors