put guard tests around export calls for vars