use C file to get alart
but seems not work propably