find machine by id