added apache 2 licence