Using API to change host vars

Sounds like that. I am not sure yet how to fix this problem within the code and multiple compilation stages plus loading modified attributes in the proper way.