make helper functions global #145