typo
moved messages to own template. ow4 handles messages, tho?
restructure for ow4
various logic converted to ow4