export some functions and global variables in window