add report function and alertify library