pulp imports moved inside the funtion that use it