diff --git a/.gitignore b/.gitignore
index 11614af2870733183efe883810764d8708bddf8f..6406605b0b60a7fde6d981076577c4856a119a5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -113,3 +113,9 @@ dmypy.json
 
 # Pyre type checker
 .pyre/
+
+#configs
+/*.yaml
+
+# vbox sdk
+/vbox_sdk
diff --git a/README.md b/README.md
deleted file mode 100644
index f31c08bf8fbb3ca398ca673013d4ddfadcc6746c..0000000000000000000000000000000000000000
--- a/README.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# start-and-attach-vm
-
-
-
-## Getting started
-
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
-
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
-
-## Add your files
-
-- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
-
-```
-cd existing_repo
-git remote add origin https://git.420joos.dev/andrijoos/start-and-attach-vm.git
-git branch -M master
-git push -uf origin master
-```
-
-## Integrate with your tools
-
-- [ ] [Set up project integrations](https://git.420joos.dev/andrijoos/start-and-attach-vm/-/settings/integrations)
-
-## Collaborate with your team
-
-- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
-- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
-
-## Test and Deploy
-
-Use the built-in continuous integration in GitLab.
-
-- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
-
-***
-
-# Editing this README
-
-When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
-
-## Suggestions for a good README
-Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
-
-## Name
-Choose a self-explaining name for your project.
-
-## Description
-Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
-
-## Badges
-On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
-
-## Visuals
-Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
-
-## Installation
-Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
-
-## Usage
-Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
-
-## Support
-Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
-
-## Roadmap
-If you have ideas for releases in the future, it is a good idea to list them in the README.
-
-## Contributing
-State if you are open to contributions and what your requirements are for accepting them.
-
-For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
-
-You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
-
-## Authors and acknowledgment
-Show your appreciation to those who have contributed to the project.
-
-## License
-For open source projects, say how it is licensed.
-
-## Project status
-If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
diff --git a/app/__init__.py b/app/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/app/main.py b/app/main.py
new file mode 100644
index 0000000000000000000000000000000000000000..9c52be337ac9c0a4b59f972240e6ff0767b43954
--- /dev/null
+++ b/app/main.py
@@ -0,0 +1,63 @@
+from argparse import ArgumentParser
+from pathlib import Path
+import yaml
+import userpaths
+import sys
+import subprocess
+
+from app.run_config import RunConfig
+from app.yaml_config import YamlConfig
+
+sys.path.append("/home/andri/Projects/start-and-attach-vm/vbox_sdk/sdk/bindings/xpcom/python")
+
+
+def get_properties_from_args(vm_name: str, port: int, **kwargs) -> RunConfig:
+    return RunConfig(vm_name, port)
+
+def get_properties_from_yaml(config: str, **kwargs) -> RunConfig:
+    current_directory_config_file = Path(f"{config}.yaml")
+    documents_directory_config_file = Path(userpaths.get_my_documents()) / Path("sav") / Path(f"{config}.yaml")
+    full_path_config_file = Path(config)
+
+    yaml_config: YamlConfig
+    if current_directory_config_file.is_file() and current_directory_config_file.exists():
+        yaml_config = get_yaml_config_from_yaml_file(current_directory_config_file)
+
+    elif documents_directory_config_file.is_file() and documents_directory_config_file.exists():
+        yaml_config = get_yaml_config_from_yaml_file(documents_directory_config_file)
+
+    else:
+        yaml_config = get_yaml_config_from_yaml_file(full_path_config_file)
+
+    return RunConfig(yaml_config["vm_name"], yaml_config["port"])
+
+def get_yaml_config_from_yaml_file(file: Path) -> YamlConfig:
+    with open(file, "r") as f:
+        return yaml.safe_load(f)
+    
+def start_and_attach_vm(config: RunConfig) -> None:
+    subprocess.run(["VBoxManage", "startvm", f"{config.vm_name}", "--type", "headless"])
+    subprocess.run(["ssh", "-X", "127.0.0.1", "-p", f"{config.localhost_port}"])
+
+def main():
+    parser = ArgumentParser("VirtualBox start and attach to VM", description="Start an VirtualBox VM and attach to it via ssh")
+    subparsers = parser.add_subparsers(title="config loader")
+
+    args_subparser = subparsers.add_parser("args", aliases=["a"], description="Pass vm properties as args")
+    args_subparser.add_argument("--vm-name", "-n", action="store", required=True, type=str)
+    args_subparser.add_argument("--port", "-p", action="store", required=True, type=int)
+    args_subparser.set_defaults(get_properties=get_properties_from_args)
+
+    yaml_subparser = subparsers.add_parser("yaml", aliases=["y"], description="Load vm properties from yaml")
+    yaml_subparser.add_argument("config", action="store", type=str, help="Can be a yaml config in current directory, Documents/sav/, or a path to a config")
+    yaml_subparser.set_defaults(get_properties=get_properties_from_yaml)
+
+    parsed_args = parser.parse_args()
+    args = vars(parsed_args)
+
+    run_config: RunConfig = parsed_args.get_properties(**args)
+    start_and_attach_vm(run_config)
+
+
+if __name__ == "__main__":
+    main()
diff --git a/app/run_config.py b/app/run_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..e43a25dd531121f20462627136269c49aae2fbdd
--- /dev/null
+++ b/app/run_config.py
@@ -0,0 +1,15 @@
+class RunConfig:
+    _vm_name: str
+    _localhost_port: int
+
+    def __init__(self, vm_name: str, localhost_port: int) -> None:
+        self._vm_name = vm_name
+        self._localhost_port = localhost_port
+
+    @property
+    def vm_name(self) -> str:
+        return self._vm_name
+    
+    @property
+    def localhost_port(self) -> int:
+        return self._localhost_port
diff --git a/app/yaml_config.py b/app/yaml_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..91d30e082fc6af4c3659746b959dc7095ac67d7a
--- /dev/null
+++ b/app/yaml_config.py
@@ -0,0 +1,5 @@
+from typing import TypedDict
+
+class YamlConfig(TypedDict):
+    vm_name: str
+    port: int
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000000000000000000000000000000000000..32853ea13cf4cdeff3eca591d7c371796efd1c03
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,3 @@
+pyyaml
+userpaths
+# virtualbox
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000000000000000000000000000000000000..d043df0c369e3d2ff841ae74f6220d169fdded2c
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,99 @@
+from setuptools import setup, find_packages
+from setuptools.command.install import install
+from urllib import request
+from pathlib import Path
+import re
+from functools import reduce
+from zipfile import ZipFile
+import subprocess
+from typing import Dict, Any
+import os
+
+# url must be a URL, but package is not available at this time
+def get_links_from_url(url: Any, pattern: str, name_pattern: str | None = None, name_position: int = 1) -> Dict[str, Any]:
+    page_request = request.urlopen(str(url))
+    page_content = page_request.read().decode('utf-8')
+    link_pattern = r"<a href=\"(.*?)\">(.*?)</a>"
+    matches = re.findall(link_pattern, page_content)
+
+    link_info = {}
+    for match in matches:
+        matched, link = match
+        formatted_match = matched.strip().replace("/", "")
+
+        search_result = re.match(pattern, formatted_match)
+        if search_result is not None:
+            name = search_result.group(0)
+            if name_pattern is not None:
+                name = re.search(name_pattern, name).group(name_position)
+
+            link_info[name] = link
+
+    return link_info
+
+def setup_virtualbox_sdk():
+    from urlpath import URL
+    import semver
+
+    sdk_zip_path = Path("sdk.zip")
+    sdk_path = Path("vbox_sdk")
+
+    if not sdk_path.exists():
+        if not sdk_zip_path.exists():
+            virtualbox_download_url = URL("https://download.virtualbox.org/virtualbox/")
+            version_pattern = r"(\d+\.\d+\.\d+)(?!\S)"
+            link_info = get_links_from_url(virtualbox_download_url, version_pattern)
+            
+            highest_version = reduce(semver.max_ver, link_info.keys())
+            highest_version_link = virtualbox_download_url / URL(link_info[highest_version])
+            sdk_pattern = r"VirtualBoxSDK-" + re.escape(highest_version) + "-(\d+)\.zip"
+            sdk_version_pattern = r"-(\d+)\.zip"
+            sdk_link_info = get_links_from_url(highest_version_link, sdk_pattern, name_pattern=sdk_version_pattern)
+            highest_sdk_version = reduce(semver.max_ver, sdk_link_info.keys())
+
+            sdk_download_link = highest_version_link / URL(sdk_link_info[highest_sdk_version])
+            print(sdk_download_link)
+
+            request.urlretrieve(str(sdk_download_link), str(sdk_zip_path))
+
+        with ZipFile(str(sdk_zip_path), "r") as f:
+            f.extractall(sdk_path)
+
+        os.remove(sdk_zip_path)
+        # set VBOX_SDK_PATH env variable
+        # https://github.com/sethmlarson/virtualbox-python/issues/104#issuecomment-358443645
+
+    subprocess.run(["python", "vboxapisetup.py", "install"], cwd="vbox_sdk/sdk/installer/")
+
+class InstallCommand(install):
+    def run(self):
+        # setup_virtualbox_sdk()
+
+        install.run(self)
+
+requirements = []
+with open("requirements.txt") as f:
+    requirements = f.readlines()
+
+setup(name='sav',
+    version='1.0',
+    packages=find_packages(),
+    install_requires=requirements,
+    entry_points={
+        "console_scripts": [
+            "sav = app.main:main"
+        ],
+    },
+    setup_requires=[
+        "setuptools",
+        "semver",
+        "urlpath",
+    ],
+    cmdclass={
+        "install": InstallCommand,
+    }
+)
+
+# vbox_sdk_path = Path(".") / Path("vbox_sdk")
+# if not vbox_sdk_path.exists():
+#     setup_virtualbox_sdk()
diff --git a/setup_variables.sh b/setup_variables.sh
new file mode 100644
index 0000000000000000000000000000000000000000..e2adbec8ed556ceb5828c8af50de842f211c5bc4
--- /dev/null
+++ b/setup_variables.sh
@@ -0,0 +1 @@
+VBOX_INSTALL_PATH=