adding smex and making a helper file