improvied magnetometer support