moving nap into its own module in my code