- fix machines settings file location - raise 404 if machine doesn't exist - improve machine api test