updates to setup functions and templates, add setup_venv