added 'check' command to check whether instance is running