changed OpenCommand constructor from private to public