api alerts work in progress, also altering the original appfirst code a little now to make it play ball