added apache v2 licence