avoid javascript global variable for now