hacking on global functions
tweaks