changed to expose to window for easier front end develpoment integration