create fn outside local exports