warning compiles, globals changes to make ekg ok