added code for getting machine names