encapsulate inside function; no global variables and exports anymore
stuff