ingest helper functions and rewrite --> don't use server.R and ui.R anymore