improve api error handling
adjust some alert-query arguments
add just now to relative dates
simplify datetime now usage