modify darkstat for add some other functions