make 'define' and friends to be a function