success! but now to do away with the alert() business...