added alert helpers, begin compiling json