add new api and cases for message module