add cmd in website for frequency
finish frequency in middleware