improving locig and trying to get alert to run