checking if ccu variables are present and giving out error when they cant be created. changed to change ccu variables only if they differ from the current ccu state