revamped with sessions
removed proto from root
added initial CLI