impl 'open' command