add open command, fixes #13
fix var not being defined