added REST service client
rewrite locomotive getting code