implementation for open_cmd is almost completed
comment out if you are doing test for your functions