simple rules engine constructed. MA is wrting files!!