add open command, warning may select wrong status line
started refactoring to better oop