added a few more methods to window