added command check status of particular service, added some error preventions