added __dirname, made packages private.  changed which layers held z-index