implement api methods for alerts