made some vars globally accessible