fix body must be string error, add attributes support for regions
fix actions calculation NRE, work on AlarmClock example