added apache licence