added Apache license where required