add environment bundling

fixes #1