add Dmitry and Sergey's changes to fix host id on worker/coordinator engine